#include "defs.h"



   typedef struct Input
  {

    int left, right, up, down, jump, attack, enter, erase, pause,leftClic,mouseX,mouseY;

  } Input;



  typedef struct Gestion
  {

    SDL_Surface *ecran;
    int nombreMonstres;
    int nombreButin;
    SDL_Surface *HUD_vie, *HUD_etoiles, *jaugePlayer, *jaugeEnnemy;
    int vies, etoiles, gameOver,level;
    Mix_Music  *musique;
    Mix_Chunk  *jump_sound, *attack_sound, *run_sound, *star_sound, *hit_sound, *feu_sound,*win_sound ,*loose_sound ,*shuriken_sound, *mort_sound, *YouWin;
    int onMenu, menuType, choice;

  } Gestion;



  
  typedef struct Map
{
 
    SDL_Surface *background, *tileSet, *background2, *backgroundStage2, *backgroundStage3;
    SDL_Surface *tileSetB;
 
    int startX, startY;
 
    int maxX, maxY;
 
    int tile[MAX_MAP_Y][MAX_MAP_X];
     
   
    int tile2[MAX_MAP_Y][MAX_MAP_X];
 
  
    int mapTimer, tileSetNumber;
 
} Map;

   typedef struct Hero
   {
       
       SDL_Surface *personnage[5], *HP;

     
       int x, y;
       int NumAnim;
       int etat, direction;
       int h, w;


       int onGround, timerMort;
       float dirX, dirY;
       int jump;

   } Hero;

   typedef struct GameObject
   {
     
    SDL_Surface *sprite, *HP;

    
    int x, y;
    int h, w;
    SDL_Surface *monstre1, *monstre2, *monstre3,*monstre4;

    int frameNumber, frameTimer;
    int onGround, timerMort;
    int etat, direction;
    float dirX, dirY;
    int saveX, saveY;

   } GameObject;

    enum
    {
    JUMP,ATTACK,RUN,STAR,MORT,WIN,LOOSE,HIT,SHURIKEN,FEU, YOUWIN
    };

typedef struct Boutons
{
  SDL_Surface *Power, *Angle, *BarrePower, *Plus, *Moins, *Fire, *Noire, *PlusPower, *MoinsPower ;

  int PowerX, PowerY,AngleX,AngleY,BarrePowerX,BarrePowerY,PlusX,PlusY,MoinsX,MoinsY,FireX,FireY,NoireX,NoireY, MoinsPowerX,MoinsPowerY, PlusPowerX, PlusPowerY ;

} Boutons ;